package com.mrx.xcitools.runner;

import com.mrx.xcitools.service.MavenBuildLogService;
import com.mrx.xcitools.service.XCIService;
import jakarta.annotation.Resource;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author Mr.X
 * @since 2024-03-10 下午 4:20:39
 */
@Component
public class TestRunner {

    @Resource
    private XCIService xciService;

    @Resource
    private MavenBuildLogService mavenBuildLogService;

    @EventListener(ApplicationReadyEvent.class)
    public void test() {
        // xciService.buildProject(1);
        // System.out.println(mavenBuildLogService.getLog(1));
    }

}
